package com.quark.cloud.web.vo.dto;

public class ResultEntity<T> {
    private boolean successFlag;
	
	private T data;
	
	private String error;
	
	private String errorMsg;

	public ResultEntity(boolean successFlag, T data) {
		this.successFlag = successFlag;
		this.data = data;
	}

	public ResultEntity(boolean successFlag, String error, String errorMsg) {
		this.successFlag = successFlag;
		this.error = error;
		this.errorMsg = errorMsg;
	}

	public boolean isSuccessFlag() {
		return successFlag;
	}

	public void setSuccessFlag(boolean successFlag) {
		this.successFlag = successFlag;
	}

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}

	public String getError() {
		return error;
	}

	public void setError(String error) {
		this.error = error;
	}

	public String getErrorMsg() {
		return errorMsg;
	}

	public void setErrorMsg(String errorMsg) {
		this.errorMsg = errorMsg;
	}
	
}
